home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1546_Timeout.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  4KB  |  81 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Timeout Action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Timeout Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Timeout" function="CSTimeout" nsversion="4" ieversion="4" actiontype="3">
  15.         <csactionparam name="timeout" type="GLActionFloatParam"></csactionparam>
  16.         </csactionclass>
  17.         <p>Timeout Action Main Script
  18.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  19. function CSTimeout (condition) {
  20.     var result = false;
  21.     if (typeof (gCurrentIdleObject) == "undefined")    return result;
  22.     if (gCurrentIdleObject.lastTime) {
  23.         var t=new Date();
  24.         if (t.getTime() >= gCurrentIdleObject.lastTime) { 
  25.             if (t.getTime() >= gCurrentIdleObject.nextTime) { 
  26.                 gCurrentIdleObject.lastTime = t.getTime() + condition[1]*1000;
  27.                 gCurrentIdleObject.nextTime = gCurrentIdleObject.lastTime + condition[1]*1000;
  28.                 return false;
  29.             }
  30.             return true;
  31.         }
  32.     } else { 
  33.         var t=new Date();
  34.         gCurrentIdleObject.lastTime = t.getTime() + condition[1]*1000;
  35.         gCurrentIdleObject.nextTime = gCurrentIdleObject.lastTime + condition[1]*1000;
  36.     }
  37.     return result;
  38. }
  39. // -->
  40.         </script>
  41.         </p>
  42.  
  43.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  44.             <tr height="1" cntrlrow>
  45.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  46.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  47.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  48.                 <td width="63" height="1"><spacer type="block" width="63" height="1"></td>
  49.                 <td width="77" height="1"><spacer type="block" width="77" height="1"></td>
  50.             </tr>
  51.             <tr height="6">
  52.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  53.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  54.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  55.                 <td width="63" height="6"><spacer type="block" width="63" height="6"></td>
  56.                 <td width="77" height="6"><spacer type="block" width="77" height="6"></td>
  57.             </tr>
  58.             <tr height="3">
  59.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  60.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  61.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  62.                 <td width="63" height="146" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  63.                     <csactioncntrl name="timeout" x="80" y="6" width="60" height="17" alignx="left" aligny="top">
  64.                 </td>
  65.                 <td width="77" height="3"><spacer type="block" width="77" height="3"></td>
  66.             </tr>
  67.             <tr height="143">
  68.                 <td width="1" height="143"><spacer type="block" width="1" height="143"></td>
  69.                 <td width="4" height="143"><spacer type="block" width="4" height="143"></td>
  70.                 <td width="76" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  71.                     <csactioncntrl type="InfoText" value="Timeout" x="4" y="9" width="75" height="17" alignx="left" aligny="top">
  72.                 </td>
  73.                 <td width="77" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="143">
  74.                     <csactioncntrl type="InfoText" value="sec." x="143" y="9" width="44" height="17" alignx="left" aligny="top">
  75.                 </td>
  76.             </tr>
  77.         </table>
  78.     </body>
  79.  
  80. </html>
  81.